const path = require('path')

module.exports = {
    // 入口
    entry:'./src/main.js',
    // 输出
    output:{
        path:path.resolve(__dirname,'dist'),
        filename:'main.js',
        clean:true // 清空上次打包
    },
    //加载器
    module:{
        rules:[
            {
                test:/\.css$/,//以css结尾
                use:['style-loader','css-loader']
            }
        ]
    },
    plugins:[],
    mode:'development'
}